package com.task.core.mapper;

import java.util.List;

import com.task.common.info.IpFraudInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.task.common.domain.info.KeyAndValue;
import com.task.core.domain.IpFraudPlatformInfo;
import com.task.core.dto.request.IpFraudPlatformRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/11/4 17:31
 */
@Mapper
public interface IpFraudPlatformMapper {

  List<IpFraudPlatformInfo> getIpFraudPlatFormByPage(IpFraudPlatformRequestDTO request);

  IpFraudPlatformInfo getIpFraudPlatFormByCode(IpFraudPlatformRequestDTO request);

  List<KeyAndValue> getIpFraudPlatFormForOption(IpFraudPlatformRequestDTO request);

  void addIpFraudPlatForm(IpFraudPlatformRequestDTO request);

  Integer modifyIpFraudPlatForm(IpFraudPlatformRequestDTO request);

  Integer deleteIpFraudPlatForm(@Param("code") String refererSourceCode, @Param("userId") Long userId);

  IpFraudPlatformInfo getIpFraudPlatFormById(@Param("code")String code);

    List<String> getIpFraudCodeByIpFraudPlatFormCode(String code);
}
